import request from '@/utils/request'

/**
 * 获取保养计划列表详情
 * @param List
 */
export function listUpKeep(query, pagination) {
  return request({

    url: `/mes/m/repair/upkeep/list`,
    method: 'post',
    data: query,
    params: pagination
  })
}
/**
 * 查询/修改保养计划单条数据
 * @param update
 */
export function detailUpKeep(id) {
  return request({

    url: `/mes/m/repair/upkeep/getById/${id}`,
    method: 'get'
  })
}
/**
 * 保养计划新增或修改
 * @param update
 */
export function saveUpKeep(data) {
  return request({
    url: `/mes/m/repair/upkeep/save`,
    method: 'put',
    data
  })
}
/**
 * 保养计划删除
 * @param delete
 */
export function removeUpKeep(data) {
  return request({
    url: `/mes/m/repair/upkeep/delete`,
    method: 'delete',
    data: data
  })
}
